<?php
interface IActor
{
    /////////////// 静态 异步 ///////////////
    public static function spawn_opt($fn, $args = [], $opt = []);
    public static function spawn($fn, $args);
    public static function spawn_link($fn, $args);
    public static function spawn_monitor($fn, $args);
    /////////////// 静态 同步 ///////////////
    public static function send($to, $data);
    public static function exit($to, $reason);
    /////////////// 实例 异步 ///////////////
    public function receive($fn);
    public function link($coid);
    public function monitor($coid);
    /////////////// 实例 同步 ///////////////
    public function trapexit($bool);
    public function notify($k, $defer, $i, $msg);
}
